package cn.rxyb.desgin.observer;

import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Vector;

/**
 * @author YJH
 * @version 1.0
 * @description 抽象目标
 * @date 2020/7/3 13:06
 */
public abstract class AbstractSubject {


    protected static final List<Observer> observers = new ArrayList<Observer>();

    static {
        observers.add(new MailObserver());
        observers.add(new SmsObserver());
    }


    /**
     * 发布的信息
     *
     * @param content
     */
    public abstract void notifyObserver(String content);
}
